<div id="column-left">{include file="blocks/menu_info_login.tpl"}</div>
<div id="content">
<h1 style="margin-top:55px;"><span class="h1-top">Lịch sử đơn hàng</span></h1>


    <div class="checkout-content" id="checkout4" style="display: block; ">
      <div class="checkout-product">
        <table>
          <thead>
            <tr>
                <td class="image">Hình ảnh</td>
                <td class="name">Sản phẩm</td>
                <td class="model">Size</td>
                <td class="quantity">Số lượng</td>
                <td class="price">Đơn giá</td>
                <td class="total">Tổng</td>
            </tr>
          </thead>
          <tbody>
          
          {foreach $detail_order as $detail}
          <tr>
            <td class="image"><a href="/products/detail.php?id={$detail.alias}&k={$detail.model}"><img style="max-width:50px;" src="/upload/product/{$detail.day_time|date_format:'%m-%Y'}/{$detail.image}" alt="{$detail.name}" title="{$detail.alias}"/></a></td>
            <td class="name"><a href="/products/detail.php?id={$detail.alias}&k={$detail.model}">{$detail.name}</a></td>
            <td class="model">{$detail.model}</td>
            <td class="quantity">{$detail.quantity}</td>
            <td class="price">{number_format($detail.price)}VNĐ</td>
            <td class="total">{number_format($detail.total)} VNĐ</td>
          </tr>
          {/foreach}
            </tbody>
          <tfoot>
            <tr>
              <td colspan="5" class="price"><b>Tổng:</b></td>
              <td class="total">{number_format($sum_money)}VNĐ</td>
            </tr>
            <tr>
              <td colspan="5" class="price"><b>VAT (10%):</b></td>
              <td class="total">{number_format($sum_money*10/100)}VNĐ</td>
            </tr>
            <tr>
              <td colspan="5" class="price"><b>Thành tiền:</b></td>
              <td class="total">{number_format($sum_money+$sum_money*10/100)}VNĐ</td>
            </tr>
          </tfoot>
        </table>
      </div>
    </div>

